import service from '@/utils/request'

// @Tags MindScaleRes
// @Summary 创建MindScaleRes
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.MindScaleRes true "创建MindScaleRes"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /scaleRes/createMindScaleRes [post]
export const createMindScaleRes = (data) => {
  return service({
    url: '/scaleRes/createMindScaleRes',
    method: 'post',
    data
  })
}

// @Tags MindScaleRes
// @Summary 删除MindScaleRes
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.MindScaleRes true "删除MindScaleRes"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /scaleRes/deleteMindScaleRes [delete]
export const deleteMindScaleRes = (data) => {
  return service({
    url: '/scaleRes/deleteMindScaleRes',
    method: 'delete',
    data
  })
}

// @Tags MindScaleRes
// @Summary 删除MindScaleRes
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除MindScaleRes"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /scaleRes/deleteMindScaleRes [delete]
export const deleteMindScaleResByIds = (data) => {
  return service({
    url: '/scaleRes/deleteMindScaleResByIds',
    method: 'delete',
    data
  })
}

// @Tags MindScaleRes
// @Summary 更新MindScaleRes
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.MindScaleRes true "更新MindScaleRes"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /scaleRes/updateMindScaleRes [put]
export const updateMindScaleRes = (data) => {
  return service({
    url: '/scaleRes/updateMindScaleRes',
    method: 'put',
    data
  })
}

// @Tags MindScaleRes
// @Summary 用id查询MindScaleRes
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.MindScaleRes true "用id查询MindScaleRes"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /scaleRes/findMindScaleRes [get]
export const findMindScaleRes = (params) => {
  return service({
    url: '/scaleRes/findMindScaleRes',
    method: 'get',
    params
  })
}

export const findMindScaleResByUser = (params) => {
  return service({
    url: '/scaleRes/findMindScaleResByUser',
    method: 'get',
    params
  })
}

// @Tags MindScaleRes
// @Summary 分页获取MindScaleRes列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.PageInfo true "分页获取MindScaleRes列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /scaleRes/getMindScaleResList [get]
export const getMindScaleResList = (params) => {
  return service({
    url: '/scaleRes/getMindScaleResList',
    method: 'get',
    params
  })
}
